﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WDTAsg2.DbBizObject;

namespace WDTAsg2.Member
{
    public partial class ProductDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // Get Id off URL
            int prodID = Convert.ToInt32(Request.QueryString.Get("id"));

            // Update form view
            fvProduct.DataSource = ProductInfo.GetProductById(prodID);
            fvProduct.DataBind();
        }
    }
}